package com.tlxch.controller.student;

import com.tlxch.result.Result;
import com.tlxch.server.student.StuTGradewarnreportService;
import com.tlxch.vo.TGradewarnreportvo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "预警报告相关接口")
@Slf4j
@RestController
@RequestMapping("/student/stutgradewarnreport")
public class StuTGradewarnreportCotroller {
    @Autowired
    StuTGradewarnreportService stuTGradewarnreportService;

    @GetMapping("/getGradeReport")
    @ApiOperation("获取成绩预警报告")
    public Result<List<TGradewarnreportvo>> getGradeReport(String sid) {
        List<TGradewarnreportvo> list = stuTGradewarnreportService.getGradeReport(sid);
        return Result.success(list);
    }
}
